/*Man H. Vu
 *CS 362 SE II
 *Testing Great Hall Card
 */

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"

int main(){
  int s = 100;
  int players = 4;
  int cards[9] = {tribute, gardens, embargo, sea_hag, village, smithy, great_hall, cutpurse, adventurer};
  struct gameState *currGame = (struct gameState *)malloc(sizeof(struct gameState));
  initializeGame(players, cards, s, currGame);

  // Played one great hall card
  printf("Current number of Cards: %d \nCurrent number of Actions: %d \n",currGame->handCount[0], currGame->numActions);
  cardEffect(great_hall, 0, 0, 0, currGame, 0, 0);
  if ((currGame->handCount[0] == 5) ){
	printf("Played Great Hall: Expected Cards: 5+0, Result: %d --- PASS \n", currGame->handCount[0]);

  }else{
    printf("Played Great Hall: Expected: 5, Result: %d --- FAIL \n", currGame->handCount[0]);
  }

  if (currGame->numActions == 2){
	printf("Played Great Hall: Expected Actions: 1+1, Result: %d --- PASS \n", currGame->numActions);
  }else{
    printf("Played Great Hall: Expected Actions: 1+1, Result: %d --- FAIL \n", currGame->numActions);
  }
  return 0;
}
